package pers.ljf.escloud.dao.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author laijinfan1
 * @since 2022-02-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_department")
public class Department implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 部门名
     */
    private String name;

    /**
     * 所属企业id
     */
    private Long enterpriseId;

    /**
     * 所属企业名
     */
    private String enterpriseName;

    /**
     * 父部门id
     */
    private Long parentId;

    /**
     * 父部门名
     */
    private String parentDeptName;

    /**
     * 部门路径，如"吃了么/技术发展部/开发组1"
     */
    private String fullPathName;

    /**
     * 部门路径ids，如"0001/0023/0045"
     */
    private String fullPathCode;

    /**
     * 主管app_user_id
     */
    private Long directorId;

    @TableField(exist = false)
    private String adminUserName;

    private Long spaceAmount;

    private Long spaceUsed;

    private Boolean isDelete;

}
